package com.foreknow.protals.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class OrderTimeOutTask {
    private Logger  LOGGER = LoggerFactory.getLogger(OrderTimeOutTask.class);

    @Scheduled(cron = "0 0/1 * ? * ?")
    public void cancelTimeOutOrder() {
        LOGGER.info("cancel orders.........");
    }
}
